<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends MY_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
	   
        $data['kategoriler'] = $this->config_model->get_categories()->result();       
        $data['products'] = $this->product_model->get_products()->result();      
        $data['slider_images'] = $this->product_model->get_slider_images()->result();
        $data['promo_images'] = $this->product_model->get_promo_images()->result();
        $data['subview'] = "content";
		$this->load->view('layouts/default',$data);
	}
    public function messages()
    {
	    $data['subview'] = "messages";
		$this->load->view('layouts/default',$data);
    }
    public function cart_test()
    {
        $data['subview']     = "cart_test";
        $this->load->view('layouts/default_cart',$data);
     }
     
     public function checkout_test()
     {
        $data['subview']     = "checkout_test";
        $this->load->view('layouts/default_checkout',$data);
     }
     
     public function contact_test()
     {
        $data['subview']     = "contact_test";
        $this->load->view('layouts/default_contact',$data);
     }
     
     public function detail_test()
     {
        $data['subview']     = "detail_test";
        $this->load->view('layouts/default_detail',$data);   
     }
     
     public function listing_test(){
        $data['subview']     = "listing_test";
        $this->load->view('layouts/default_listing',$data); 
     }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */